import './assets/main.css'
import ElementPlus from 'element-plus' //引入组件
import 'element-plus/dist/index.css'
import { createApp } from 'vue'
import { createI18n } from 'vue-i18n'
import { createPinia } from 'pinia'
import App from './App.vue'
import router from './router/login.js'
import 'element-plus/dist/index.css'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import  axios from 'axios'
axios.defaults.withCredentials = true;

import * as ElementPlusIconsVue from '@element-plus/icons-vue'

const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
const pinia = createPinia()
const i18n = createI18n({
    locale: 'zh-cn',
    messages: {
        'zh-cn': {

        }
    }
})
app.use(ElementPlus, { locale: zhCn })
app.use(pinia)
app.use(i18n)
app.use(router)
app.mount('#app')

